<?php
$now = date('Y-m-d H:i:s');
$output = "<?xml version=\"1.0\"?>
            <rss version=\"2.0\">
                <channel>
                    <title>".$this->pageTitle." - ".Yii::app()->name."</title>
                    <link>".NC::get_header()."</link>
                    <description>赞酷网根据您的喜好为您提供您最感兴趣、最有价值的新闻</description>
                    <language>en-us</language>
                    <pubDate>$now</pubDate>
                    <lastBuildDate>$now</lastBuildDate>
                    <docs>".NC::get_header()."</docs>
                    <managingEditor>spricity@gmail.com</managingEditor>
                    <webMaster>spricity@gmail.com</webMaster>
					<category>News</category>
            ";
foreach($rss as $val){
	$output .="<item><title>".CHtml::encode($val->site_title)."</title>
				<link>".CHtml::encode($val->link_url)."</link>
				<description>".CHtml::encode($val->news_desc)."</description></item>";
}
$output .= "</channel></rss>";
echo $output;